Clone Project
Creates a new project by cloning configuration from an existing project.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
pjPid | integer | Yes | The ID of the project to clone. |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Request Body
json
{
"projectName": "Name of the cloned Project",
"description": "Description for the cloned project",
"branching": false
}
Responses
200 - Project cloned successfully
json
{
"pid": 3,
"projectDisplayName": "New Project",
"projectCode": "NewProject",
"description": "Description for the new project",
"createdUserPid": 1,
"createdTimestamp": 1728040036528
}
400 - Bad Request Error
json
{
"error": "Project name validation failed: Cannot start with digit, max length 256, only alphabets, digits, spaces, and underscores allowed."
}
409 - Conflict - Project name already exists
json
{
"error": "A project with the name 'New Project2' already exists."
}
422 - Project with specified PID not found
json
{
"error": "Project with PID 2 not found."
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X POST "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/projects/${{pjPid}}/clone" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"projectName": "Name of the cloned Project",
"description": "Description for the cloned project",
"branching": false
}'